package cn.iocoder.yudao.module.picturebook.controller.admin.user.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 用户信息新增/修改 Request VO")
@Data
public class PBUserSaveReqVO {

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10032")
    private Long id;

    @Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "用户名不能为空")
    private String username;

    @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "密码不能为空")
    private String password;

    @Schema(description = "真实姓名", example = "芋艿")
    private String realName;

    @Schema(description = "头像URL")
    private String avatar;

    @Schema(description = "性别：1-男，2-女，0-未知")
    private Integer gender;

    @Schema(description = "出生日期")
    private LocalDate birthDate;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "用户类型：1-学生，2-老师，3-管理员", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "用户类型：1-学生，2-老师，3-管理员不能为空")
    private Integer userType;

    @Schema(description = "学校")
    private String school;

    @Schema(description = "年级")
    private String grade;

    @Schema(description = "班级", example = "王五")
    private String className;

    @Schema(description = "状态：1-正常，2-禁用", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态：1-正常，2-禁用不能为空")
    private Integer status;

}